<!DOCTYPE HTML>
<html lang="zh-CN">
    <head>
        <title>代码压缩工具（支持HTML/Javascript/CSS）-本地版</title>
        <meta name="Robots" content="INDEX,FOLLOW">
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
        <meta charset="UTF-8">
        <link rel="shortcut icon" href="../static/img/favicon.ico">
        <link rel="stylesheet" href="index.css?v=99187301">
        <script type="text/javascript" src="../static/vendor/vue/vue.js?v=b6ac71fa"></script>
    </head>
    <body>
        <div class="wrapper" id="pageContainer">
            <div class="panel panel-default" style="margin-bottom: 0px;">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        <a href="http://www.baidufe.com/fehelper/feedback.html" target="_blank" class="x-a-high">
                            <img src="../static/img/fe-16.png" alt="fehelper" title="by zyl.参考版本v2020.05.2810">FeHelper
                        </a>
                        ：代码压缩工具
                    </h3>
                </div>
            </div>
            <div class="panel-body mod-code">
                <div class="row">
                    <textarea class="form-control mod-textarea" id="codeSource" ref="codeSource" v-model="sourceContent" placeholder="在这里粘贴需要进行压缩的代码"></textarea>
                </div>
                <div class="row ui-mt-10 ui-mb-10">
                    <button id="btnFormat" class="btn btn-success btn-sm ui-mr-20" @click="compress()">压缩</button>
                    <div class="radio ui-d-ib">
                        <label>
                            <input id="codeTypeHtml" name="codeType" type="radio" value="html" v-model="codeType" @click="changeCodeType('html')">HTML压缩
                        </label>
                    </div>
                    <div class="radio ui-d-ib ui-ml-20">
                        <label>
                            <input id="codeTypeJs" name="codeType" type="radio" value="js" v-model="codeType" @click="changeCodeType('js')">Javascript压缩
                        </label>
                    </div>
                    <div class="radio ui-d-ib ui-ml-20">
                        <label>
                            <input id="codeTypeCss" name="codeType" type="radio" value="css" v-model="codeType" @click="changeCodeType('css')">CSS压缩
                        </label>
                    </div>
                    <div class="ui-fl-r x-right-info" v-cloak v-show="!!resultContent">
                        <span class="box-infos" v-html="compressInfo"></span>
                        <button class="btn btn-sm btn-primary" @click="copyToClipboard(resultContent)">复制结果</button>
                    </div>
                </div>
                <div class="row rst-item" v-cloak v-show="!!resultContent">
                    <textarea class="form-control mod-textarea" :class="hasError?'x-error':''" ref="jfContent" disabled="disabled" placeholder="压缩后的代码将在这里显示" v-model="resultContent"></textarea>
                </div>
            </div>
        </div>
        <script src="../static/vendor/uglifyjs3/minify.js?v=e725f320"></script>
        <script src="../static/vendor/uglifyjs3/utils.js?v=296dcec8"></script>
        <script src="../static/vendor/uglifyjs3/ast.js?v=80bd333c"></script>
        <script src="../static/vendor/uglifyjs3/parse.js?v=d2aa1549"></script>
        <script src="../static/vendor/uglifyjs3/transform.js?v=84aa64c2"></script>
        <script src="../static/vendor/uglifyjs3/scope.js?v=9f0c9b48"></script>
        <script src="../static/vendor/uglifyjs3/output.js?v=a39ac81d"></script>
        <script src="../static/vendor/uglifyjs3/compress.js?v=37b36cad"></script>
        <script type="text/javascript" src="uglifyjs3.js?v=f3b9f069"></script>
        <script src="../static/vendor/codemirror/codemirror.js?v=65f3b1ba"></script>
        <script src="../static/vendor/codemirror/javascript.js?v=a83906b6"></script>
        <script src="../static/vendor/codemirror/css.js?v=a4918d97"></script>
        <script src="../static/vendor/codemirror/xml.js?v=1e50d09c"></script>
        <script src="../static/vendor/codemirror/htmlmixed.js?v=e45624ee"></script>
        <script src="../static/vendor/codemirror/active-line.js?v=3bbd89f4"></script>
        <script src="../static/vendor/codemirror/matchbrackets.js?v=e8ceebb8"></script>
        <script src="../static/vendor/codemirror/placeholder.js?v=1c8b56be"></script>
        <script type="text/javascript" src="htmlminifier.min.js?v=70f4bac6"></script>
        <script type="text/javascript" src="index.js?v=955a8cac"></script>
        <script src="../static/vendor/jquery/jquery-3.3.1.min.js?v=3a46a439"></script>
    </body>
</html>
